package com.xhq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {

//    @Value("${capsize}")
//    private String capsize;
//    @Value("${age}")
//    private  Integer age;
    @Autowired
    private GirlProperties girlProperties;
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String say(){

        return "年龄"+girlProperties.getAge()+"罩杯"+girlProperties.getCapsize();
    }
}

